package com.hx.base.others;

import java.util.HashMap;

/**
 * @author jxlgcmh
 * @create 2019-07-03 16:43
 */
public class HashMapTest {
    public static void main(String[] args) {
        HashMap map = new HashMap();
        map.put("minghua", "10086");
        map.put("kangkang", "10010");
        /**
         * 在jdk8中，采用foreach的方式遍历map
         */
        map.forEach(new MyBiConsumer());
    }
}
